@extends('home.layout')
@section('content')
    <div class="am-container ">
        <div class="shopTitle ">
            <h4>搜索结果</h4>
            <h3>亲，这是你搜索的哦</h3>
            <div class="today-brands ">
                <a href="# ">小鱼干</a>
                <a href="# ">海苔</a>
                <a href="# ">鱿鱼丝</a>
                <a href="# ">海带丝</a>
            </div>
            <span class="more ">
                    <a class="more-link " href="# ">更多美味</a>
                        </span>
        </div>
    </div>
    <div class="am-g am-g-fixed flood method3 ">
@if($data->count())
            <ul class="am-thumbnails ">
                @foreach($data as $k=>$v)
                    <li>
                        <div class="list ">
                            <a href="/home/good/{{$v['gid']}}">
                                <img src="http://lamp187mall.oss-cn-beijing.aliyuncs.com/{{$v['gphoto']}}" />
                                <div class="pro-title ">{{$v['gname']}}</div>
                                <span class="e-price ">￥{{$v['gcost']}}</span>
                            </a>
                        </div>
                    </li>
                @endforeach

            </ul>
            {{--<ul class="am-thumbnails ">--}}
                {{--@foreach($data as $k=>$v)--}}
                    {{--<li>--}}
                        {{--<div class="list ">--}}
                            {{--<a href="/home/good/{{$v['gid']}}">--}}
                                {{--<img src="http://lamp187mall.oss-cn-beijing.aliyuncs.com/{{$v['gphoto']}}" />--}}
                                {{--<div class="pro-title ">{{$v['gname']}}</div>--}}
                                {{--<span class="e-price ">￥{{$v['gcost']}}</span>--}}
                            {{--</a>--}}
                        {{--</div>--}}
                    {{--</li>--}}
                {{--@endforeach--}}

            {{--</ul>--}}
    @else
            <h1>没有商品</h1>
        @endif





    </div>
@endsection